package com.lx.design.demo.learning.liu.strategy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author lx
 * @date 2021/3/1 13:28
 */
@Component
public class Client {

    @Autowired
    private Jpush jpush;


    public static void main(String[] args) {
        String msg = "消息内容";
        FeishuPush feishuPush = new FeishuPush();
        Notice notice = new Notice(msg, feishuPush);
        notice.push();
    }

    public void jPush(){
        String msg = "自定义消息内容";
        Notice notice = new Notice(msg,jpush);
        notice.push();
    }
}
